/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.facade;

import do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.facad.CCReferralUpdaterFacadeRemote;
import do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.impl.UpdaterController;
import javax.ejb.Stateless;

/**
 *
 * @author Developer
 */
@Stateless
public class CCReferralUpdaterFacade implements CCReferralUpdaterFacadeRemote {

    @Override
    public int createUpdater() throws Exception {
        UpdaterController uc = new UpdaterController();
        return uc.createUpdater();
    }

    @Override
    public int removeUpdater() throws Exception {
        UpdaterController uc = new UpdaterController();
        return uc.removeUpdater();
    }

    @Override
    public int stopUpdater() throws Exception {
        UpdaterController uc = new UpdaterController();
        return uc.stopUpdater();
    }

    @Override
    public int startUpdater() throws Exception {
        UpdaterController uc = new UpdaterController();
        return uc.startUpdater();
    }

    @Override
    public boolean isRunning() throws Exception {
        UpdaterController uc = new UpdaterController();
        return uc.isRunning();
    }

    @Override
    public void setRepositoryPath(String path) throws Exception {
        UpdaterController uc = new UpdaterController();
        uc.setRepository(path);
    }

    @Override
    public void setMinimumPollingRate(int seconds) throws Exception {
        UpdaterController uc = new UpdaterController();
        uc.setMinimumPollingRate(seconds);
    }

    @Override
    public void setCurrentPollingRate(int seconds) throws Exception {
        UpdaterController uc = new UpdaterController();
        uc.setCurrentPollingRate(seconds);
    }
}
